import {utils} from './../utils/index'

let Order = {}

utils.commonAddApi(Order, 'updateOrder', 'order/update', 'post') // 更新订单状态
utils.commonAddApi(Order, 'getCustomersByShop', 'order/customer/list', 'post') // 查询店铺下的客户
utils.commonAddApi(Order, 'getShopOrdersByUser', 'order/customer/shop/list', 'post') // 查询某客户在店铺里的订单
utils.commonAddApi(Order, 'getUserOrderList', 'order/user/list', 'post') // 查询某客户在店铺里的订单
utils.commonAddApi(Order, 'deleteOrder', 'order/delete', 'post')
utils.commonAddApi(Order, 'createOrder', 'order/create', 'post')
utils.commonAddApi(Order, 'getOrderDetail', 'order/detail', 'post')
utils.commonAddApi(Order, 'getServiceOrderList', 'serviceOrder/list', 'post')
utils.commonAddApi(Order, 'cancelReturn', 'order/cancelReturn/{orderNumber}', 'get')
utils.commonAddApi(Order, 'getOrdersByShop', 'order/shop/orderList', 'post')
export default Order
